export const modalMixin = {
  data () {
    return {
      visible: false,
      id: ''
    }
  },
  methods: {
    show (id) {
      this.visible = true
      this.id = id
      this.fetchData()
    },
    onClose () {
      this.visible = false
    }
  }
}